import { axios } from '@/utils/request'

const api = {
  role: '/auth/get-role-list',
  permission: '/auth/get-permission',
}

export default api

export function getRoleList (parameter) {
  return axios({
    url: api.role,
    method: 'get',
    params: parameter
  })
}

export function createRole (parameter) {
  return axios({
    url: api.createRole,
    method: 'post',
    data: parameter
  })
}



